.designer-drawer {
  .el-drawer__header {
    margin-bottom: 0;
    padding: 18px 20px 17px;
    color: var(--el-text-color-regular);
    border-bottom: 1px solid var(--el-border-color-extra-light);

    h2 {
      font-size: 18px;
    }
  }

  .el-drawer__body {
    padding: 0;

    > .el-scrollbar>.el-scrollbar__wrap {
      padding: 10px 20px 20px;
    }
  }

  .el-drawer__footer {
    padding: 10px;
    border-top: 1px solid var(--el-border-color-extra-light);
  }
}

.page-designer-dialog {
  > .el-dialog__header {
    position: relative;
    padding: 0;

    .page-designer-header {
      display: flex;
      align-items: center;
      height: 48px;

      .center-wrap {
        flex: 1;

        h2 {
          font-size: 16px;
          text-align: center;
        }
      }

      .left-wrap,
      .right-wrap {
        .el-button {
          width: 48px;
          height: 48px;

          .el-icon {
            font-size: 18px !important;
          }
        }

        .el-button+.el-button {
          margin-left: 0;
        }
      }

      .left-wrap {
        .el-button {
          border-right: 1px solid var(--el-border-color-lighter);
        }
      }

      .right-wrap {
        .el-button {
          border-left: 1px solid var(--el-border-color-lighter);
        }
      }
    }
  }

  > .el-dialog__body {
    position: relative;
    padding: 0;
    overflow: hidden;
  }

  > .el-dialog__body {
    border-bottom: none;
  }

  > .el-dialog__footer {
    padding: 0;
  }
}

.full-screen-dialog {
  > .el-dialog__body {
    position: relative;
    padding: 0;
  }

  &.is-footer-hidden {
    > .el-dialog__body {
      border-bottom: none;
    }
  }

  > .el-dialog__footer {
    padding: 0;
  }
}

.page-designer-contanier {
  position: absolute;
  inset: 0;

  &.pc {
    .aside-wrap {
      position: absolute;
      top: 0;
      bottom: 0;

      .aside-button {
        position: absolute;
        top: 50%;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 60px;
        margin-top: -30px;
        color: var(--el-color-white);
        background-color: var(--el-color-primary);
        border: 1px solid var(--el-color-primary);
        cursor: pointer;
      }

      &.is-hover {
        .aside-button {
          color: var(--el-text-color-primary);
          background-color: var(--el-bg-color-page);
          border: 1px solid var(--el-border-color-lighter);
        }
      }

      &.widget-aside {
        left: -30%;
        z-index: 2000;
        padding-right: 16px;
        border-right: 1px solid var(--el-border-color-lighter);

        .aside-button {
          right: -24px;
          border-left: none;
          border-top-right-radius: 2px;
          border-bottom-right-radius: 2px;
        }

        .el-header,
        .el-main {
          border-right: 1px solid var(--el-border-color-lighter);
        }
      }

      &.property-aside {
        right: -30%;
        z-index: 1000;
        padding-left: 16px;
        border-left: 1px solid var(--el-border-color-lighter);

        .aside-button {
          left: -24px;
          border-right: none;
          border-top-left-radius: 2px;
          border-bottom-left-radius: 2px;
        }

        .el-header,
        .el-main {
          border-left: 1px solid var(--el-border-color-lighter);
        }
      }
    }

    &.is-widget-active {
      .widget-aside {
        left: 0;

        &.aside-wrap {
          .aside-button {
            color: var(--el-text-color-primary);
            background-color: var(--el-bg-color-page);
            border: 1px solid var(--el-border-color-lighter);
            border-left: none;
          }

          &.is-hover {
            border-right: 1px solid var(--el-color-primary);

            .aside-button {
              color: var(--el-color-white);
              background-color: var(--el-color-primary);
              border: 1px solid var(--el-color-primary);
            }
          }
        }
      }

      .center-container {
        right: -30%;
        left: 30%;
      }
    }

    &.is-property-active {
      .property-aside {
        right: 0;

        &.aside-wrap {
          .aside-button {
            color: var(--el-text-color-primary);
            background-color: var(--el-bg-color-page);
            border: 1px solid var(--el-border-color-lighter);
            border-right: none;
          }

          &.is-hover {
            border-left: 1px solid var(--el-color-primary);

            .aside-button {
              color: var(--el-color-white);
              background-color: var(--el-color-primary);
              border: 1px solid var(--el-color-primary);
            }
          }
        }
      }

      .center-container {
        right: 30%;
        left: -30%;
      }
    }
  }

  &.wap,
  &.app {
    .aside-wrap {
      &.widget-aside {
        border-right: 1px solid var(--el-border-color-lighter);
      }

      &.property-aside {
        border-left: 1px solid var(--el-border-color-lighter);
      }
    }

    .furnish-content {
      padding: 40px 0;
    }
  }

  .aside-wrap {
    position: relative;
    display: flex;
    flex-basis: inherit;
    flex-direction: column;
    width: 30%;
    overflow: inherit;
    background-color: var(--el-bg-color-page);
    transition: left 0.3s linear, right 0.3s linear;

    .el-header {
      --el-header-padding: 0;
      --el-header-height: 45px;

      display: flex;
      background: var(--el-fill-color-blank);
      border-bottom: 1px solid var(--el-border-color-lighter);

      .config-tab {
        position: relative;
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: center;
        cursor: pointer;

        &:hover {
          color: var(--el-color-primary);
        }

        &.is-active {
          color: var(--el-color-primary);

          &::after {
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--el-color-primary);
            content: '';
          }
        }
      }
    }

    .el-main {
      --el-main-padding: 0;

      position: relative;
      background-color: var(--el-bg-color);

      .el-scrollbar {
        .el-scrollbar__wrap {
          overflow: hidden;
          overflow-y: auto;
        }
      }

      .widget-component,
      .page-component {
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        width: 100%;
        height: 100%;
      }

      .widget-type {
        position: relative;
        width: 120px;
        height: 100%;
        border-right: 1px solid var(--el-border-color-lighter);
      }
    }
  }
}

.image-preview-dialog {
  > .el-dialog__body {
    border-top: none;
    border-bottom: none;
  }
}

.page-designer-collapse {
  &.el-collapse {
    border-top: none;

    .el-collapse-item__content {
      padding-bottom: 0;
    }

    .collapse-title {
      padding: 8px 12px;
      font-weight: bold;
    }
  }

  .config-form {
    margin: 0;
    padding: 4px 14px 14px 20px;
    overflow: hidden;

    .el-form-item {
      margin-top: 0;
      overflow: hidden;
    }

    .el-form-item+.el-form-item {
      margin-top: 6px;
    }

    .el-upload--picture-card {
      --el-upload-picture-card-size: 96px;
    }

    .el-upload-list--picture-card {
      --el-upload-list-picture-card-size: 96px;
    }

    .industry {
      .el-checkbox-group {
        .el-checkbox-button {
          margin: 6px;

          .el-checkbox-button__inner {
            border-left: var(--el-border);
            border-radius: var(--el-border-radius-base);
          }

          &.is-focus {
            .el-checkbox-button__inner {
              border-left-color: var(--el-checkbox-button-checked-border-color);
            }
          }

          &.is-checked {
            .el-checkbox-button__inner {
              border-left-color: var(--el-checkbox-button-checked-border-color);
            }
          }
        }
      }
    }

    .el-radio-group {
      margin: 6px;
    }

    .preview-img {
      .el-form-item__content {
        > div {
          line-height: 0;
        }
      }

      .el-upload-list--picture-card {
        .el-upload,
        .el-upload-list__item {
          margin: 6px;
        }
      }
    }
  }
}

/** 新建/编辑站点、页面、模块表单样式 **/
.website-page-module-form {
  .el-tabs {
    margin: 12px 6px 12px 0;
  }

  .el-checkbox-group {
    margin: 6px;

    .el-checkbox-button {
      &.is-focus {
        .el-checkbox-button__inner {
          border-left: 1px solid var(--el-checkbox-button-checked-border-color);
        }
      }
    }
  }

  .el-divider__text {
    white-space: nowrap;
    background-color: var(--el-drawer-bg-color);
  }

  .industry {
    .el-checkbox-group {
      margin: 0;

      .el-checkbox-button {
        margin: 6px;

        .el-checkbox-button__inner {
          border-left: var(--el-border);
          border-radius: var(--el-border-radius-base);
        }

        &.is-focus {
          .el-checkbox-button__inner {
            border-left-color: var(--el-checkbox-button-checked-border-color);
            border-left-width: 1px;
          }
        }

        &.is-checked {
          .el-checkbox-button__inner {
            border-left-color: var(--el-checkbox-button-checked-border-color);
          }

          &.is-disabled {
            .el-checkbox-button__inner {
              background-color: var(--el-border-color-lighter);
              border-left: var(--el-border);
            }
          }
        }
      }
    }
  }

  .preview-img {
    .el-form-item__content {
      > div {
        line-height: 0;
      }
    }

    .el-upload-list--picture-card {
      .el-upload,
      .el-upload-list__item {
        margin: 6px;
      }
    }
  }
}
